/**
 * 导入modules目录下的所有JSON文件并导出为questions
 */

// 导入所有模块JSON文件
import cssData from './modules/CSS.json';
import javascriptData from './modules/javascript.json';
import miniProgramsData from './modules/mini-programs.json';
import nodeData from './modules/node.json';
import reactData from './modules/react.json';
import typescriptData from './modules/typescript.json';
import vueData from './modules/vue.json';
// import webpackData from './modules/webpack.json';
import performanceData from './modules/performance.json';
import engineeringData from './modules/engineering.json';
import designPatternsData from './modules/design-patterns.json';
import HTMLData from './modules/HTML.json';


// 合并所有模块数据
const questions = {
  ...cssData,
  ...javascriptData,
  ...miniProgramsData,
  ...nodeData,
  ...reactData,
  ...typescriptData,
  ...vueData,
  ...performanceData,
  ...engineeringData,
  ...designPatternsData,
  ...HTMLData,
  // ...webpackData,
};

// 默认导出所有问题数据
export default questions;

// 也提供单独的模块导出，以便按需使用
export {
  cssData,
  javascriptData,
  miniProgramsData,
  nodeData,
  reactData,
  typescriptData,
  vueData,
  performanceData,
  engineeringData,
  designPatternsData,
  HTMLData,
  // webpackData,
};